<?php
if (!isset ($update))
	$update = false;

$index = $header->index;

//if (is_object($header)) {
	echo "<span id='header_" . $header->mnemonic . "'>" . $header->label . "</span>";
	if ($update) {
		echo CHtml::activeHiddenField($header, '['.$index.']mnemonic');
		echo CHtml::activeHiddenField($header, '['.$index.']label');
		echo CHtml::activeHiddenField($header, '['.$index.']index');
		echo CHtml::activeHiddenField($header, '['.$index.']type');
		echo CHtml::activeHiddenField($header, '['.$index.']key');
	}
//} else {
//	echo "<span id='header_" . $header['mnemonic'] . "'>" . $header['label'] . "</span>";
//}
?>
